<?php

header("Content-Type: text/plain");

function g($a) {
    debug_print_backtrace();
}

function f($a) {
    g($a + 1);
}

f(42);

die();

mysql_connect('localhost', 'root', '239');
mysql_select_db('big');

define('MIN', 10);
define('MAX', 99);

for ($i=500001; $i<=1000000; $i++) {
    $a = rand(MIN, MAX);
    $b = rand(MIN, MAX);
    $r = rand(MIN, MAX) * 100 + rand(MIN, MAX);
    $s = "${a}x${b} -> $r";
    mysql_query("INSERT INTO bt VALUES (0, $a, $b, '$s')");
}

die();

$zip = new ZipArchive();

$err = $zip->open('/home/ilya/tmp/a.zip', ZipArchive::CHECKCONS);
echo "err = ";
var_dump($err);
if (!$err)
    die("Failed to open zip with problem");

echo "<br>";
var_dump($zip->getFromName('a.txt'));
die("e");

$zip->close();

?>
